package com.code.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * BASIC_地区
 * </p>
 *
 * @author guanfenga@yonyou.com
 * @since 2022-08-17
 */
@Data
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 地区ID
     */
    private Integer areaId;

    /**
     * 全名
     */
    private String fullName;

    /**
     * 名称
     */
    private String name;

    /**
     * 路径
     */
    private String treePath;

    /**
     * 地区编码
     */
    private String areaCode;

    /**
     * 父节点
     */
    private Integer parentId;

    /**
     * 排序
     */
    private Integer orders;

    /**
     * 是否为叶节点
     */
    private Boolean isLeaf;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;

    /**
     * 行政区划编码
     */
    private String districtnumber;

    /**
     * 是否启用
     */
    private Integer isactive;

    @ApiModelProperty(name = "page",value = "当前页")
    private Integer page;

    @ApiModelProperty(name = "limit",value = "显示数量")
    private Integer limit;

    @ApiModelProperty(name = "查询总数",value = "查询总数")
    private Integer count;
}
